﻿using MediatR;
using Order.Api.Read.Dto.Order;
using Order.ErrorCode;

namespace Order.Api.Read.Application.Command
{
    /// <summary>
    /// 退款分页查询命令
    /// 用于查询退款分页数据，支持关键字搜索和时间范围筛选
    /// </summary>
    public class RefundPageCommand : IRequest<ApiPageIng<RefundPageDto>>
    {
        /// <summary>
        /// 查询条件
        /// </summary>
        public RefundQueryDto Query { get; set; } = new RefundQueryDto();
    }

    /// <summary>
    /// 退款详情查询命令
    /// 用于根据退款ID查询详细信息
    /// </summary>
    public class RefundDetailCommand : IRequest<RefundDetailDto>
    {
        /// <summary>
        /// 退款ID
        /// 必须大于0
        /// </summary>
        public int Id { get; set; }
    }
}
